<div class="right01"><img src="content/images/04.gif" /> <a href="<?php echo site_url(); ?>/C_Main/index/">主页</a> &gt; <span>用户信息</span> &gt; <span>修改密码</span></div>

<?php
$attributes = array('id' => 'submitform');
echo form_open('users/C_Users_Edit/edit_password', $attributes);
?>
<table class="tables">
    <?PHP
    if (is_array($users)) {
        foreach ($users as $users_item) {
            ?>
            <tr>
                <td style="width:14%">&nbsp;</td>
                <td style="width:11%">用户名称：</td>
                <td style="width:13%"><?PHP echo $users_item['u_name']; ?></td>
                <td style="width:11%">原始密码：</td>
                <td style="width:13%"><input id="old_password" name="old_password" type="password" value=""/></td>
                <td style="width:11%">新密码：</td>
                <td style="width:13%"><input id="new_password" name="new_password" type="password" value=""/></td>
                <td style="width:14%">&nbsp;</td>
            </tr>
            <input name="u_id" type="hidden" value="<?PHP echo $users_item['u_id']; ?>"/>
            <?PHP
        }
    }
    ?>
</table>
<div style="margin-top: 20%; margin-left: 35%;">
    <input class="button" type="submit"  name="postsubmit" value="提交"/>
</div>
<? echo form_close(); ?>
<script type="text/javascript">
    $("#submitform").submit(function(e){
        if ($("#old_password").val()=="" || $("#new_password").val()=="") {
            $.prompt("<span style='color:#FF0000'>请确认信息填写完整！</span>", {
                title: "提示",
                buttons: { "确定": true},
                timeout:5000
            });
            return false;
        }
    })
</script>